<template>
  <div v-bind="$attrs" @click="$emit('box-click')" @boxClick="handleClick" @box-click="handleClick">{{ msg }}</div>
</template>

<script>
export default {
  name: 'VueTest',
  data() {
    return {
      msg: 'hello',
    };
  },
  mounted() {
    let a = 1;
  },
  beforeDestroy() {},
  methods: {
    handleClick() {},
  },
};
</script>

<style lang="scss" scoped>
div {
  width: 100px;
  height: 100px;
  color: #000;
}
</style>
